package it.poste.il.compensatore.dao.impl;

import it.poste.il.compensatore.dao.SDPRequestDao;
import it.poste.il.compensatore.entity.SDPRequest;
import java.util.List;

public class SDPRequestDaoImpl extends BaseEntityDaoImpl<SDPRequest> implements SDPRequestDao {
    public SDPRequestDaoImpl() {
        super(SDPRequest.class, "SDPRequest");
    }

    public List<SDPRequest> loadByFilter(SDPRequest entityFilter) {
        throw new UnsupportedOperationException();
    }

    public SDPRequest loadByExample(SDPRequest entity) {
        throw new UnsupportedOperationException();
    }
    
//    @Transactional
//	public int selectMessageId(Message msg) {
//		try {
//	      return (int) getEntityManager().createNamedQuery("SELECT msg.id FROM Messages msg " +
//              "WHERE msg.requestid = :requestId AND msg.operationid = :operationId").
//              setParameter("requestId", msg.getRequestId()).
//              setParameter("operationId", msg.getOperationId()).
//              getSingleResult();
//	    } catch (NoResultException e) {
//	      return 0;
//	    }
//	}
    
    
}
